import mysql.connector

my_db = mysql.connector.connect(host="localhost", user="root", passwd="root", database="sign",
                                auth_plugin='mysql_native_password')
my_cursor = my_db.cursor()
my_cursor.execute("SHOW TABLES")
my_cursor.fetchall()

for x in my_cursor:
    print(x)

